import request from '@/utils/request'

// 查询专业信息表列表
export function listCompassSpecialty(query) {
  return request({
    url: '/system/CompassSpecialty/list',
    method: 'get',
    params: query
  })
}

// 查询专业信息表详细
export function getCompassSpecialty(id) {
  return request({
    url: '/system/CompassSpecialty/' + id,
    method: 'get'
  })
}

// 新增专业信息表
export function addCompassSpecialty(data) {
  return request({
    url: '/system/CompassSpecialty',
    method: 'post',
    data: data
  })
}

// 修改专业信息表
export function updateCompassSpecialty(data) {
  return request({
    url: '/system/CompassSpecialty',
    method: 'put',
    data: data
  })
}

// 删除专业信息表
export function delCompassSpecialty(id) {
  return request({
    url: '/system/CompassSpecialty/' + id,
    method: 'delete'
  })
}

// 导出专业信息表
export function exportCompassSpecialty(query) {
  return request({
    url: '/system/CompassSpecialty/export',
    method: 'get',
    params: query
  })
}
